package 面向对象中级.方法的重写;

public class Phone {
    public void sendMessage() {
        System.out.println("发短信");
    }

    public void call() {
        System.out.println("打电话");
    }

    public void showNum() {
        System.out.println("来电显示号码");
    }

    //大的数据类型
    public Phone max() throws RuntimeException {
        return null;
    }
}
